package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 合同与收费项关联中间对象 zhwy_chargeitem_rentalcontract
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public class ZhwyChargeitemRentalcontract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增 */
    @Excel(name = "主键，自增")
    private Long id;

    /** 收费项id，外键 */
    @Excel(name = "收费项id，外键")
    private Long chargeitemId;

    /** 合同id，外键 */
    @Excel(name = "合同id，外键")
    private Long rentalcontractId;

    private String chargeItemName;
    private BigDecimal chargeItemUnivalence;

    public ZhwyChargeitemRentalcontract() {
    }

    public ZhwyChargeitemRentalcontract(Long id, Long chargeitemId, Long rentalcontractId, String chargeItemName, BigDecimal chargeItemUnivalence) {
        this.id = id;
        this.chargeitemId = chargeitemId;
        this.rentalcontractId = rentalcontractId;
        this.chargeItemName = chargeItemName;
        this.chargeItemUnivalence = chargeItemUnivalence;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getChargeitemId() {
        return chargeitemId;
    }

    public void setChargeitemId(Long chargeitemId) {
        this.chargeitemId = chargeitemId;
    }

    public Long getRentalcontractId() {
        return rentalcontractId;
    }

    public void setRentalcontractId(Long rentalcontractId) {
        this.rentalcontractId = rentalcontractId;
    }

    public String getChargeItemName() {
        return chargeItemName;
    }

    public void setChargeItemName(String chargeItemName) {
        this.chargeItemName = chargeItemName;
    }

    public BigDecimal getChargeItemUnivalence() {
        return chargeItemUnivalence;
    }

    public void setChargeItemUnivalence(BigDecimal chargeItemUnivalence) {
        this.chargeItemUnivalence = chargeItemUnivalence;
    }

    @Override
    public String toString() {
        return "ZhwyChargeitemRentalcontract{" +
                "id=" + id +
                ", chargeitemId=" + chargeitemId +
                ", rentalcontractId=" + rentalcontractId +
                ", chargeItemName='" + chargeItemName + '\'' +
                ", chargeItemUnivalence=" + chargeItemUnivalence +
                '}';
    }
}
